package com.bgrconsulting.stockorderentry.service.converter.response;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.converter.OrderDetailsConverter;
import com.bgrconsulting.stockorderentry.service.model.OrderDetails;
import com.bgrconsulting.stockorderentry.service.model.response.OrderListResponse;

@XmlRootElement(name = "OrderListResponse")
public class OrderListResponseConverter {
	private OrderListResponse enity;
	
	public OrderListResponseConverter(OrderListResponse orderListResponse) {
		this.enity = orderListResponse;
	}
	
	public OrderListResponseConverter() {
		enity = new OrderListResponse();
	}
	
	@XmlElement(name = "count")
	public int getCount() {
		return this.enity.getCount();
	}
	
	@XmlElement(name = "marker")
	public String getMarker()
	{
		return this.enity.getMarker();
	}
	
	@XmlElement(name = "orderDetails")
	public OrderDetailsConverter getorderDetails() {
		OrderDetailsConverter odc = getOrderDetails();
		return odc;
	}
	
	
	
	public OrderDetailsConverter getOrderDetails() {
		OrderDetailsConverter odc = new OrderDetailsConverter(enity.getOrderDetails());
		return odc;
	}

}
